<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
                <title></title>
                <link rel="stylesheet" href="__PUBLIC__/Css/bootstrap.min.css" />
                <link rel="stylesheet" href="__PUBLIC__/Css/main.css" />
                <link rel="stylesheet" href="__PUBLIC__/Css/common.css" />
        </head>
        <body>
                <div class="container-fluid">
                        <div class="row-fluid">
                                <div class="span12">
                                        <table class="table table-bordered table-hover">
                                                <thead>
                                                        <tr>
                                                                <th>
                                                                        角色名
                                                                </th>
                                                                <th>
                                                                        所属用户
                                                                </th>
                                                                <th>
                                                                        操作
                                                                </th>
                                                        </tr>
                                                </thead>
                                                <tbody>
                                                        <foreach from="$data" value="$v">
                                                                <tr class="info">
                                                                        <td>
                                                                                {$v.rname}
                                                                        </td>
                                                                        <td>
                                                                                {$v.adminname}
                                                                        </td>
                                                                        <td>
                                                                                <a href="{|U:'Admin/delAdminRole', array('aid' => $v['aid'],'rid'=>$v['rid'])}" class="btn btn-danger"><i class="icon-trash icon-white"></i>&nbsp;删除</a>
                                                                        </td>
                                                                </tr>
                                                        </foreach>
                                                        <tr><td colspan='3'><a href='{|U:"Admin/addAdminRole",array("aid"=>$_GET["aid"])}' class='btn btn-primary'>添加用户角色</a><span style="color:#999;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：此删除操作只会将角色从该用户的角色列表中删除！</span></td></tr>
                                                </tbody>
                                        </table>
                                </div>
                        </div>
                </div>
        </body>
</html>